package org.xmx0632.connector;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.AbstractApplicationContext;
import org.xmx0632.connector.cfg.SpringConfig;
import org.xmx0632.connector.util.SpringContextHolder;

public class Main {
	private static final Logger LOG = LoggerFactory.getLogger(Main.class);

	public static void main(String[] args) {
		LOG.debug("Starting application context");
		AbstractApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
		SpringContextHolder.init(ctx);
		ctx.registerShutdownHook();
	}

}
